import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {SearchResultComponent} from './search-result/search-result.component';
import {NewPolicyDetailComponent} from './new-policy-detail/new-policy-detail.component';
import {NewPolicyListComponent} from './new-policy-list/new-policy-list.component';
import {PolicyAnalysisChartComponent} from './policy-analysis-chart/policy-analysis-chart.component';
import {PolicyAnalysisMatrixComponent} from './policy-analysis-matrix/policy-analysis-matrix.component';
import {RelatedPolicyListComponent} from './related-policy-list/related-policy-list.component';
import {SubscriptionComponent} from './subscription/subscription.component';
import {MagicScienceInnovateComponent} from './magic-science-innovate/magic-science-innovate.component';
import {PolicyAnalysisCloudComponent} from './policy-analysis-cloud/policy-analysis-cloud.component';
import {AboutUsComponent} from './about-us/about-us.component';


const routes: Routes = [
  {path: '', redirectTo: 'home', pathMatch: 'full'},
  {path: 'home', loadChildren: () => import('./home/home.module').then(m => m.HomeModule)},
  {path: 'search-result', component: SearchResultComponent},
  {path: 'new-policy-detail', component: NewPolicyDetailComponent},
  {path: 'new-policy-list', component: NewPolicyListComponent},
  {path: 'related-policy-list', component: RelatedPolicyListComponent},
  {path: 'policy-analysis-chart', component: PolicyAnalysisChartComponent},
  {path: 'policy-analysis-cloud', component: PolicyAnalysisCloudComponent},
  {path: 'policy-analysis-matrix', component: PolicyAnalysisMatrixComponent},
  {path: 'magic-science-innovate', component: MagicScienceInnovateComponent},
  {path: 'subscription', component: SubscriptionComponent},
  {path: 'about-us', component: AboutUsComponent},
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
